import React, { Component } from 'react'
import {withRouter,RouteComponentProps} from 'react-router'

const Login = ({history}:RouteComponentProps)=> {
     
        return (
            <div>
                未登录
                <button onClick={()=>{
                   history.push('/login')
                }}>去登陆</button>
            </div>
        )
    
}

export default withRouter(Login)
